package com.zwps.biz.api.model.vo.strsvrr;


import lombok.Data;

import javax.validation.constraints.Digits;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;


@Data

public class DischargeCapacityVO  {
    /**
     *
     */


    private BigDecimal waterLevel;

    /**
     *
     */

    private BigDecimal open;

    /**
     *
     */

    private BigDecimal discharge;

    public void setWaterLevel(BigDecimal waterLevel) {
        this.waterLevel =  waterLevel != null ?
                waterLevel.setScale(2, RoundingMode.HALF_UP) :
                null;
    }

    public void setOpen(BigDecimal open) {
        this.open = open  != null ?
                open.setScale(2, RoundingMode.HALF_UP) :
                null;;
    }

    public void setDischarge(BigDecimal discharge) {
        this.discharge = discharge != null ?
                discharge.setScale(2, RoundingMode.HALF_UP) :
                null;;
    }
}